
export const list = [
  {
    path: 'index',
    name: 'index',
    component: () => import('@/views/HomeView.vue'),
    meta: {
      title: '首页',
      isShow: true,
      icon: 'el-icon-s-home'
    }
  },
  {
    path: 'pane',
    name: 'pane',
    meta: {
      title: '面板',
      isShow: true,
      icon: 'el-icon-date'
    },
    component: {
      render (h) {
        return h('router-view')
      }
    },
    redirect: '/pane/calendar',
    children: [{
      path: 'calendar',
      name: 'calendar',
      meta: {
        title: '日历面板',
        isShow: true

      },
      component: () => import('@/views/pane/PaneView.vue')
    }]
  },
  {
    path: 'info',
    name: 'info',
    meta: {
      title: '信息管理',
      isShow: true,
      icon: 'el-icon-reading'
    },
    component: {
      render (h) {
        return h('router-view')
      }
    },
    redirect: '/info/student',
    children: [
      {
        path: 'student',
        name: 'student',
        meta: {
          title: '学生信息',
          isShow: true

        },
        component: () => import('@/views/info/student/StudentView.vue')
      }, {
        path: 'class',
        name: 'class',
        meta: {
          title: '班级信息',
          isShow: true

        },
        component: () => import('@/views/info/class/ClassView.vue')
      }]
  },
  {
    path: 'example',
    name: 'example',
    meta: {
      isShow: true,
      title: '教学案例',
      icon: 'el-icon-edit'
    },
    redirect: '/example/card',
    component: {
      render (h) {
        return h('router-view')
      }
    },
    children: [
      {
        path: 'card',
        name: 'card',
        meta: {
          title: '卡片案例',
          isShow: true

        },
        component: () => import('@/views/example/ExampleCard.vue')
      }, {
        path: 'table',
        name: 'table',
        meta: {
          title: '表格案例',
          isShow: true

        },
        component: () => import('@/views/example/ExampleTable.vue')
      }]
  },
  {
    path: 'posts',
    name: 'posts',
    meta: {
      isShow: true,
      title: '文章管理',
      icon: 'el-icon-postcard'
    },
    component: {
      render (h) {
        return h('router-view')
      }
    },
    redirect: '/posts/list',
    children: [
      {
        path: 'list',
        name: 'list',
        meta: {
          title: '文章案例',
          isShow: true
        },
        component: () => import('@/views/posts/list/ListView.vue')
      }]
  },
  {
    path: 'aside',
    name: 'aside',
    meta: {
      isShow: true,
      title: '侧边栏',
      icon: 'el-icon-postcard'
    },
    component: {
      render (h) {
        return h('router-view')
      }
    },
    redirect: '/aside/menu',
    children: [
      {
        path: 'menu',
        name: 'menu',
        meta: {
          title: '侧边栏',
          isShow: true
        },
        component: () => import('@/views/aside/menu/MenuDemo.vue')
      }]
  },
  {
    path: 'account',
    name: 'account',
    meta: {
      isShow: true,
      title: '账号管理',
      icon: 'el-icon-s-management'
    },
    component: {
      render (h) {
        return h('router-view')
      }
    },
    redirect: '/account/menu',
    children: [
      {
        path: 'account-list',
        name: 'account-list',
        meta: {
          title: '账号列表',
          isShow: true
        },
        component: () => import('@/views/account/ListView.vue')
      }]
  }
]
